package com.example.blog.model;

import com.example.blog.utils.DateUtils;
import lombok.Data;

import java.util.Date;

@Data
public class BlogInfo {
    private Integer id;

    private String title;

    private Integer userId;

    private Integer deleteFlag;

    private Date createTime;

    private Date updateTime;

    private String content;

    private Boolean isLoginUser;

    public String getUpdateTime() {
        return DateUtils.dateFormat(updateTime);
    }
}